<?php 
/**
Template Page for the gallery overview

Follow variables are useable :

	$gallery     : Contain all about the gallery
	$images      : Contain all images, path, title
	$pagination  : Contain the pagination content

 You can check the content when you insert the tag <?php var_dump($variable) ?>
 If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>

<style>
	.ngg-print-gallery-image { width:150px;padding:0px;float:left;margin:0px;margin-right:10px;margin-bottom:10px; }
	.ngg-print-gallery-image img { width:150px;height:100px;margin-bottom:0px; }
</style>

<div class="ngg-printgallery" id="<?php echo $gallery->anchor ?>">
	
	<!-- Thumbnails -->
	<?php foreach ( $images as $image ) : ?>
    
		<div class="ngg-print-gallery-image" >
				<?php if ( !$image->hidden ) { ?>
				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->imageURL ?>" <?php echo $image->size ?> />
				<?php } ?>
		</div>
	
	<?php if ( $image->hidden ) continue; ?>
	<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
		<br style="clear: both" />
	<?php } ?>

 	<?php endforeach; ?>
 	
	<!-- Pagination -->
 	<?php echo $pagination ?>
 	
</div>

<?php endif; ?>